package com.lianzhihui.romeex.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 2020/11/9 1:56 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class WalletMainBean implements Serializable {


    /**
     * common : {"totalBalance":"455454.4354","totalBalanceUSDT":"4435.66","totalBalanceCNY":"455.65"}
     * list : [{"coinName":"RET","coinNameCobo":"RET","coinNameAlias":"Rre","logo":"http://fdfdf.png","validBalance":"4354.54","lockBalance":"43.554","profitBalance":"4354.54","totalBalance":"5646","rise":"-1.43"}]
     */

    private CommonBean common;
    private List<CoinBean> list;

    public CommonBean getCommon() {
        return common;
    }

    public void setCommon(CommonBean common) {
        this.common = common;
    }

    public List<CoinBean> getList() {
        return list;
    }

    public void setList(List<CoinBean> list) {
        this.list = list;
    }

    public static class CommonBean {
        /**
         * totalBalance : 455454.4354
         * totalBalanceUSDT : 4435.66
         * totalBalanceCNY : 455.65
         */

        private double totalBalance;
        private double totalBalanceUSDT;
        private double totalBalanceCNY;

        public double getTotalBalance() {
            return totalBalance;
        }

        public void setTotalBalance(double totalBalance) {
            this.totalBalance = totalBalance;
        }

        public double getTotalBalanceUSDT() {
            return totalBalanceUSDT;
        }

        public void setTotalBalanceUSDT(double totalBalanceUSDT) {
            this.totalBalanceUSDT = totalBalanceUSDT;
        }

        public double getTotalBalanceCNY() {
            return totalBalanceCNY;
        }

        public void setTotalBalanceCNY(double totalBalanceCNY) {
            this.totalBalanceCNY = totalBalanceCNY;
        }
    }

    public static class CoinBean implements Serializable {

        /**
         * coinName : RET
         * coinNameCobo : RET
         * coinNameAlias : Rre
         * logo : http://fdfdf.png
         * validBalance : 4354.54
         * price : 1
         * priceCny : 6.82
         * lockBalance : 43.554
         * profitBalance : 4354.54
         * totalBalance : 5646
         * rise : -1.43
         */

        private String coinName = "";
        private String coinNameCobo = "";
        private String coinNameAlias = "";
        private String logo = "";
        private double validBalance;
        private double price;
        private double priceCny;
        private double lockBalance;
        private double profitBalance;
        private double placementBalance;
        private double totalBalance;
        private String rise = "";
        private double minerIntegral;


        public double getMinerIntegral() {
            return minerIntegral;
        }

        public void setMinerIntegral(double minerIntegral) {
            this.minerIntegral = minerIntegral;
        }

        /**
         * 币种类型
         *
         * @return 1 其他，2 ret，3 usdt
         */
        public int getType() {
            if (coinName.equals("REX")) {
                return 2;
            }
            if (!coinNameCobo.equals("REX")) {
                //跨链币种
                return 3;
            }
            if(coinName.equals("XUSD")){
                return 4;
            }
            return 1;
        }

        public double getPlacementBalance() {
            return placementBalance;
        }

        public void setPlacementBalance(double placementBalance) {
            this.placementBalance = placementBalance;
        }

        public String getCoinName() {
            return coinName;
        }

        public void setCoinName(String coinName) {
            this.coinName = coinName;
        }

        public String getCoinNameCobo() {
            return coinNameCobo;
        }

        public void setCoinNameCobo(String coinNameCobo) {
            this.coinNameCobo = coinNameCobo;
        }

        public String getCoinNameAlias() {
            return coinNameAlias;
        }

        public void setCoinNameAlias(String coinNameAlias) {
            this.coinNameAlias = coinNameAlias;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public double getValidBalance() {
            return validBalance;
        }

        public void setValidBalance(double validBalance) {
            this.validBalance = validBalance;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getPriceCny() {
            return priceCny;
        }

        public void setPriceCny(double priceCny) {
            this.priceCny = priceCny;
        }

        public double getLockBalance() {
            return lockBalance;
        }

        public void setLockBalance(double lockBalance) {
            this.lockBalance = lockBalance;
        }

        public double getProfitBalance() {
            return profitBalance;
        }

        public void setProfitBalance(double profitBalance) {
            this.profitBalance = profitBalance;
        }

        public double getTotalBalance() {
            return totalBalance;
        }

        public void setTotalBalance(double totalBalance) {
            this.totalBalance = totalBalance;
        }

        public String getRise() {
            return rise;
        }

        public void setRise(String rise) {
            this.rise = rise;
        }
    }
}
